package com.bank.controller;

import com.alibaba.fastjson.JSON;
import com.bank.service.VerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class RegisterController {

    @Autowired
    VerifyService verifyService;

    @RequestMapping(value = "/verifyRegister",method = RequestMethod.POST)
    public String verify(@RequestBody Map<String, String> map) {
        return JSON.toJSONString(verifyService.verifyRegister(map));
    }


}
